#define _CRT_SECURE_NO_WARNINGS

#include "Stack.h"

int main()
{
	ST st;
	STInit(&st);
	//ST st1 = st;


	STPush(&st, 1);
	STPush(&st, 2);
	STPush(&st, 3);
	STPush(&st, 4);
	STPush(&st, 5);

	/*int i = 0;
	for (i = 0; i < st.top; i++)
	{
		printf("%d ", st.a[i]);
	}
	printf("\n");*/

	while (!STEmpty(&st))
	{
		printf("%d ", STTop(&st));
		STPop(&st);
	}
	printf("\n");
	STDestroy(&st);

	return 0;
}